package com.atguigu.gulimall.order.service;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.alipay.PayAsyncVo;
import com.atguigu.gulimall.order.alipay.PayVo;
import com.atguigu.gulimall.order.vo.OrderSubmitRespVo;
import com.atguigu.gulimall.order.vo.OrderSubmitVo;
import com.atguigu.gulimall.order.vo.OrderVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.text.ParseException;
import java.util.Map;

/**
 * 订单
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2019-10-08 09:56:16
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderVo confirm();

    OrderSubmitRespVo submit(OrderSubmitVo submitVo);

    PayVo getOrderPay(String orderSn);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PageUtils queryListWithItem(Map<String, Object> map);

    String handlePayResult(PayAsyncVo asyncVo) throws ParseException;
}

